home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_2 / vector.ent < prev    next >
Text File  |  1991-04-12  |  2KB  |  42 lines

  1. Article 1433 of comp.sys.handhelds:
  2. From: billw@hpcvra.CV.HP.COM (William C Wickes)
  3. Subject: HP-48SX Vectored Enter
  4. Date: 12 Mar 90 21:21:55 GMT
  5. Organization: Hewlett-Packard Co., Corvallis, OR, USA
  6.  
  7. The HP-48SX manuals do not document a very powerful feature that we call
  8. "Vectored ENTER," that allows you in effect to redefine or bypass the
  9. command line parser and to have a shot at the stack etc. after the command
  10. line has been executed.
  11.  
  12. Keys that execute an automatic ENTER perform a two-step process:
  13.  
  14. 1.  The command line is parsed and evaluated.
  15. 2.  The key definition is executed.
  16.  
  17. When flags -62 and -63 are both set, the system extends this process as
  18. follows:
  19.  
  20. 1.  The current path is searched for a global variable named *aENTER
  21. (here "*a" is the Greek alpha character--character 140).  If present,
  22. the command line is entered as a string object and *aENTER is
  23. executed.  If absent, the command line is parsed and evaluated
  24. normally.
  25.  
  26. 2.  The key definition is executed.
  27.  
  28. 3.  The current path is searched for a global variable named *bENTER
  29. ("*b" is Greek beta--character 223).
  30. If present, then a string representing the key definition is put on the
  31. stack, and *bENTER is executed.  The string is the key definition
  32. object's name if it is a command, XLIB name, global or local name, or
  33. an empty string for other object types; its primary purpose is to implement
  34. things like the TRACE mode on other calcs, where you can print a running
  35. record of what you do.
  36.  
  37. A simple example of the use of *aENTER is to create a more convenient
  38. binary calculator, where *aENTER slaps a "#" on the front of the command
  39. line so you don't have to bother when entering numbers.
  40.  
  41.  
  42.